import java.util.Scanner;

public class D9231 {
    public static void main(String[] args) {
        Scanner jp = new Scanner(System.in);
        boolean eixt;
        haha:
        while (true){

            System.out.println("请输入第一个数字(或输入eixt退出程序)");
            int num1= jp.nextInt();


            System.out.println("请输入一个运算符(+ - * /)");
            String fu = jp.next();

            System.out.println("请输入第二个数字");
            int num2 = jp.nextInt();



           switch (fu) {
               case "+":
                       int jia = num1 + num2;
                       System.out.println(jia);
                   break ;

               case"-":

                       int jian = num1 - num2;
                       System.out.println(jian);
                       break ;


               case"*":

                      int cheng = num1 * num2;
                      System.out.println(cheng);
                   break ;

               case "/":
                   if (fu.equals("/")) {
                       int chu = num1 / num2;
                       System.out.println(chu);
                        if (num2==0){
                            System.out.println("重新输入");
                        }
                   }
               default:

                   System.out.println("请问还能继续运算吗？(yes/no)");
                   String tui = jp.next();
                   if (tui.equals("eixt")){
                       System.out.println("结束程序");
                       break haha;
                   }

           }

        }

    }


}


